package com.clk.portfoy.classlib.xml;

import java.util.Date;

import javax.xml.bind.annotation.XmlElement;

import com.clk.portfoy.classlib.portfoy.AbsDeger;

public class XmlDeger {
	@XmlElement
	private String isim;
	@XmlElement
	private String grup;
	@XmlElement
	private int adet = 0;
	@XmlElement
	private double alisDeger = 0;
	// private double anlikDeger = 0;
	// private double oncekiDeger = -1;
	@XmlElement
	private double hedefDeger = 0;
	@XmlElement
	private double satilanDeger = 0;
	@XmlElement
	private Date alisTarihi;
	@XmlElement
	private Date satisTarihi;

	// ---------------------------------------------------------------------------------
	public XmlDeger() {

	}

	// ---------------------------------------------------------------------------------
	public XmlDeger(AbsDeger deger) {
		this.isim = deger.getIsim();
		this.grup = deger.getGrup();
		this.adet = deger.getAdet();
		this.alisDeger = deger.getAlisDeger();

		this.hedefDeger = deger.getHedefDeger();
		this.satilanDeger = deger.getRealizeDeger();
		this.alisTarihi = deger.getAlisTarihi();
		this.satisTarihi = deger.getSatisTarihi();
	}

	// ---------------------------------------------------------------------------------
	public String getIsim() {
		return isim;
	}

	// ---------------------------------------------------------------------------------
	public String getGrup() {
		return grup;
	}

	// ---------------------------------------------------------------------------------
	public int getAdet() {
		return adet;
	}

	// ---------------------------------------------------------------------------------
	public double getAlisDeger() {
		return alisDeger;
	}

	// ---------------------------------------------------------------------------------
	public double getHedefDeger() {
		return hedefDeger;
	}

	// ---------------------------------------------------------------------------------
	public double getSatilanDeger() {
		return satilanDeger;
	}

	// ---------------------------------------------------------------------------------
	public Date getAlisTarihi() {
		return alisTarihi;
	}

	// ---------------------------------------------------------------------------------
	public Date getSatisTarihi() {
		return satisTarihi;
	}
	// ---------------------------------------------------------------------------------
}
